package com.freshcity.component.tooltip
{
	import flash.display.Bitmap;
	import flash.display.DisplayObject;
	import flash.display.Sprite;

	public class BackgroundTooltip extends BaseToolTip
	{
		protected var scaleBg:Sprite;

		public function BackgroundTooltip()
		{
			super();
			this.scaleBg=new ScaleBg();
			super.addChild(this.scaleBg);
			super.addChild(contentContainer);
		}

		protected override function updateSize(arg1:Number, arg2:Number):void
		{
			super.updateSize(arg1, arg2);
			this.scaleBg.width=arg1;
			this.scaleBg.height=arg2;
		}

		public override function addChild(arg1:DisplayObject):DisplayObject
		{
			if (contentContainer == arg1)
			{
				super.addChild(arg1);
			}
			else
			{
				this.contentContainer.addChild(arg1);
			}
			return arg1;
		}


	}
}
